import Cookies from "js-cookie";  //npm i js-cookie --save

// 设置cookie

export const setCookie = (token) => {
    return Cookies.set("tokenKey", token, { expires: 1 })
}

// 获取cookie
export const getCookie = () => {
    return Cookies.get("tokenKey")
}

// 移除cookie

export const removeCookie = () => {
    return Cookies.remove("tokenKey")
}